Conversation
📊 Packages dist files size differenceThanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
|
||||||||||||
|
hi there, this is one of a kind.. i had a look recently about svelte 5/asset mapper and i ran into the same, so following what i thought i wrote a |
|
Hey @maxperei, sure, any help would be appreciated! :) |
|
ok well, i generated a patch to give a try |
|
Hey @maxperei and sorry for the late reply, support for Svelte 5 is something I've put on the side for a while, but I'd really like to finish this task. I tried your solution, which is indeed super hacky, but it's still one solution among... 0 other solutions 😅 I've just rebased and force-pushed this PR, and moved the ux.symfony.com things to symfony/ux.symfony.com#32, the files I will try to open an issue on Svelte to see if they can provide a JSDeliver/ESM-compatible build, that will be easier for everyone. |
|
Hey @Kocal I came across this post on X which reminded me of the issue we had when trying to integrate Svelte 5 in the initial PR: I tried applying the same importmap approach with esm.sh cdn, and it seems to work in a minimal setup with a pre-built component: This might be a good starting point for a solution! |
|
Hi, and thanks for the suggestions! Unfortunately, after several months of failed attempts, I think we’re simply going to drop support for Svelte 5 with AssetMapper in UX Svelte 3. Their CDN build is completely broken, and I’d rather have nothing (or at least, just support with Webpack Encore) than have to go to great lengths to try and get it working with AssetMapper. If anyone in the future decides to add Svelte 5 support for AssetMapper by offering a clean solution, it will be a pleasure! |
Related to #2288
This is in work-in-progress, I still have an error in the browser while trying to render the
Hellocomponent when using the AssetMapper:I didn't check how it deals with Webpack Encore yet (opened symfony/webpack-encore#1384).